<?php
/**
 * Created by PhpStorm.
 * User: zhongyb
 * Date: 17-4-21
 * Time: 下午3:59
 */

namespace common\entities\common;

use common\entities\ConfigEntity;
use Yii;

/**
 * This is the model class for table "myscrm_organization_for_test".
 *
 * @property string $orgcode
 * @property string $desc
 */
class MyscrmOrganizationForTestEntity extends ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_organization_for_test';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['orgcode'], 'required'],
            [['orgcode'], 'string', 'max' => 64],
            [['desc'], 'string', 'max' => 500]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'orgcode' => '用于测试的租户代码，对应租户表UniqueName',
            'desc' => '描述',
        ];
    }
}